AddMText
Description
This method adds the MTEXT entity.
Parameter | Type | Description |
---|---|---|
Data | TdxfExportData | It contains the fields: • Text – text string |
• Point – coordinates of base point • FHeight – font height • Rotation – rotation angle in degrees • HAlign - horizontal text justification type. |
HAlign value | Description |
---|---|
0 | Left |
1 | Center |
2 | Right |
3 | Aligned (if vertical alignment = 0) |
4 | Middle (if vertical alignment = 0) |
5 | Fit (if vertical alignment = 0) |
Note
You can specify text formatting correspondingly to AutoCAD(R). For example the following code lines specify italic, underlined text 'Register on www.cadsofttools.com' line with "Courier New" font:
Data.Text := '{\fCourier New|i1;\LRegister on www.cadsofttools.com}';
Syntax
procedure AddMText(const Data: TdxfExportData);